using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;

/// <summary>
/// Summary description for DanhMucChinh_Ctl
/// </summary>
public class DanhMucChinh_Ctl
{

    private DanhMucChinh_Info _info= new DanhMucChinh_Info();
    private DanhMucChinh_Data _data = new DanhMucChinh_Data();

    public DanhMucChinh_Info Info
    {
        get { return _info; }
        set { _info = value; }
    }

    public void insert()
    {
        _data.insert(_info);
    }

    public void update()
    {
        _data.update(_info);
    }

    public void delete()
    {
        _data.delete(_info);
    }

    public DataTable LayDanhMucChinh()
    {
        DataTable dt = new DataTable();
        SqlDataAdapter adapter = new SqlDataAdapter();
        adapter=_data.LayDanhMucChinh();
        adapter.Fill(dt);
        return dt;
    }

	public DanhMucChinh_Ctl()
	{
		//
		// TODO: Add constructor logic here
		//
	}
}
